import { NgModule } from '@angular/core'
import { Routes, RouterModule } from '@angular/router'
import { AcquirerModule } from '../acquirer/acquirer.module'
import { GroupModule } from '../group/group.module'
import { MerchantModule } from '../merchant/merchant.module'
import { StoreModule } from '../store/store.module'
import { TerminalModule } from '../terminal/terminal.module'
import { BatchImportModule } from '../batch-import/batch-import.module'

const routes: Routes = [
  {
    path: 'acquirers',
    loadChildren: '../acquirer/acquirer.module#AcquirerModule',
  },
  {
    path: 'groups',
    loadChildren: '../group/group.module#GroupModule',
  },
  {
    path: 'merchants',
    loadChildren: '../merchant/merchant.module#MerchantModule',
  },
  {
    path: 'stores',
    loadChildren: '../store/store.module#StoreModule',
  },
  {
    path: '',
    loadChildren: '../terminal/terminal.module#TerminalModule',
  },
  {
    path: 'batch-import',
    loadChildren: '../batch-import/batch-import.module#BatchImportModule',
  },
]

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class BusinessRoutingModule {}
